package org.distributed.transaction.core.event;

import java.util.EventObject;

/**
 * 分布式事务事件
 */
public abstract class TransactionEvent extends EventObject {

	private static final long serialVersionUID = 1L;
	/** System time when the event happened */
	private final long timestamp;

	public TransactionEvent(Object data) {
		super(data);
		this.timestamp = System.currentTimeMillis();
	}

	public final long getTimestamp() {
		return timestamp;
	}

}
